package com.swsc.ai;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ApplicationContext;
import org.springframework.core.env.Environment;

@Slf4j
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan(basePackages = {"com.swsc.ai.mapper"})
public class SpringBootVersionSecondApplication {
    public static void main(String[] args) {
        ApplicationContext context =SpringApplication.run(SpringBootVersionSecondApplication.class, args);
        Environment environment = context.getEnvironment();
        String active = environment.getProperty("spring.profiles.active");
        log.info("\n\n***********************\t启动成功 当前配置环境: 《{}》\t***********************\n", active);
    }
}
